package cn.huaqingcheng.tianshu.core.uc.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import jakarta.annotation.Nullable;
import java.time.LocalDateTime;

/**
 * 账号
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@ToString(doNotUseGetters = true)
public class Account {

    /**
     * id
     */
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机号
     */
    private String mobile;

    private Integer version;

    private LocalDateTime createdAt;


    private @Nullable AccountPassword password;

}
